package com.zhongke.cotrun.service;

import com.github.pagehelper.PageInfo;
import com.zhongke.cotrun.model.exception.MyException;
import com.zhongke.cotrun.model.pojo.ExpertInfo;
import com.zhongke.cotrun.model.pojo.UserInfo;

import javax.servlet.http.HttpSession;
import java.util.List;

public interface ExpertInfoService {
    /**
     * 修改审核状态
     *
     * @param expertInfo
     * @return
     */
    public boolean updateAuditStatus(ExpertInfo expertInfo) throws MyException;


    /**
     * 按条件查询
     */
    public PageInfo selectExpertInfoByCondition(UserInfo userInfo, Integer pageNum, Integer pageSize);

    /**
     * 查看具体的
     *
     * @param expertInfo
     * @return
     */
    public ExpertInfo selectExpertById(ExpertInfo expertInfo);

    /**
     * 人才发布
     */


    public Boolean addExperInfo(ExpertInfo expertInfo, HttpSession session) throws MyException;


    /**
     * 查看自己的专家信息
     */
    public ExpertInfo selectMyExpertInfo(Integer userId);
    /**
     * 根据id查看专家信息
     * @param
     * @return
     */
    public ExpertInfo selectMyExpertByuId(Integer id) ;
}
